/*
 * @lc app=leetcode.cn id=1317 lang=typescript
 *
 * [1317] 将整数转换为两个无零整数的和
 */

// @lc code=start
function getNoZeroIntegers(n: number): number[] {
    const check = (num: number) => {
        return num
            .toString()
            .split("")
            .every((i) => i !== "0");
    };
    for (let i = 1; i <= n / 2; i++) {
        if (check(i) && check(n - i)) {
            return [i, n - i];
        }
    }
    return [];
}
// @lc code=end
